{% extends "hometeacher.html" %}

{% block title %}All Exams{% endblock %}

{% block teachercontent %}
    <ul>
    {% for item in collection %}
        <li>
            <p>{{ item.name }}</p>
            <p>{{ item.description }}</p>
            <p>{{ item.deadline }}</p>
            <p>{{ item.author }}</p>
        </li>
        <a class="addlink" href="/Exam/{{ item.id }}">View</a>
        <a class="deletelink" href="/DeleteExam/{{ item.id }}">Delete</a>
        <a class="changelink" href="/EditExam/{{ item.id }}">edit</a>
    {% endfor %}
    </ul>
{% endblock %}